//
//  ZUserInfoModel.m
//  OC-weibo
//
//  Created by zero on 17/3/23.
//  Copyright © 2017年 zero. All rights reserved.
//

#import "ZUserInfoModel.h"


@implementation ZUserInfoModel


- (instancetype)initWithDic:(NSDictionary *)dic{
    

    if (self = [super init]) {
        
        [self setValuesForKeysWithDictionary:dic];
    }
    
    return self;
}

#pragma mark
#pragma mark - 归档方法

- (void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:self.access_token forKey:access_Token];
    [aCoder encodeInteger:self.expires_in forKey:expires_In];
    [aCoder encodeObject:self.remind_in forKey:remind_In];
    [aCoder encodeObject:self.uid forKey:uId];
    [aCoder encodeObject:self.avatar_hd forKey:avatar_Large];
}



#pragma mark
#pragma mark - 归档方法
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder{
    
    self.access_token = [aDecoder decodeObjectForKey:access_Token];
    self.expires_in = [aDecoder decodeIntegerForKey:expires_In];
    self.remind_in = [aDecoder decodeObjectForKey:remind_In];
    self.uid = [aDecoder decodeObjectForKey:uId];
    self.avatar_hd = [aDecoder decodeObjectForKey:avatar_Large];
    
    
    return self;
}

#pragma mark
#pragma mark - 规避
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
    
}

@end
